//package com.social.config;
//
//import com.social.filter.EncryptFilter;
//import org.springframework.boot.web.servlet.FilterRegistrationBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @BelongsProject: social
// * @BelongsPackage: com.social.config
// * @Author: zhm
// * @CreateTime: 2022-12-11  17:07
// * @Description: TODO
// * @Version: 1.0
// */
//@Configuration
//public class FilterConfig {
//    @Bean
//    public FilterRegistrationBean registrationEncryptFilter() {
//        EncryptFilter encryptFilter = new EncryptFilter();
//        FilterRegistrationBean registrationBean = new FilterRegistrationBean();
//        registrationBean.setFilter(encryptFilter);
//        registrationBean.addUrlPatterns("/*");
//        registrationBean.setName("EncryptFilter");
//        registrationBean.setOrder(-101);
//        return registrationBean;
//    }
//}
